package com.liuhan.house.dao;

import com.liuhan.house.pojo.House;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface HouseMapper {
    int deleteByPrimaryKey(Integer houseId);

    int insert(House record);

    int insertSelective(House record);

    House selectByPrimaryKey(Integer houseId);

    int updateByPrimaryKeySelective(House record);

    int updateByPrimaryKey(House record);

    List<House> getHouseOrderByUpdateTime();

    List<House> getHouseListByKeyWord(@Param("keyword") String keyword,@Param("type") Integer type, @Param("orderBy") String orderBy);

    List<House> getByUserId(Integer userId);
}